package com.item.audrey_hepburn.controller.db2;

import com.item.audrey_hepburn.entity.db2.ResultMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/guest")
public class GuestController{
    private ResultMap resultMap= ResultMap.getResultMap();

    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public ResultMap login() {
        resultMap.success();
        resultMap.setMessage("欢迎进入，您的身份是游客！");
        return resultMap;

    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public ResultMap submitLogin() {
        resultMap.success();
        resultMap.setMessage("您拥有获得该接口的信息的权限！");
        return resultMap;

    }
}